﻿using System;
using System.Collections.Generic;
using System.Text;


namespace Gestion.Domain.Entities
{
    [Serializable]
    public class DetalleRiesgoEntity : Base.BaseDetalleRiesgoEntity
    {
        #region Constructors
        /// <summary>
        /// Creates a Cuenta Bancaria without Id
        /// </summary>
        public DetalleRiesgoEntity()
        {
        }

        /// <summary>
        /// Creates a valid Cuenta Bancaria
        /// </summary>
        public DetalleRiesgoEntity(Int64? id)
        {
            Id = id;
        }

        #endregion

        #region Properties

        public override string Label
        {
            get
            {
                return Id.ToString() + " - " + Nombre;
            }
        }
        #endregion

        #region Members

        #endregion

        public override Int32 GetHashCode()
        {
            unchecked
            {
                Int32 result;
                result = Id.GetHashCode();
                result = 29 * result;
                return result;
            }
        }

        public override Int64? Id
        {
            get
            {
                return base.Id;
            }
            set
            {
                base.Id = value;
            }
        }


    }
}
